import request from '@/utils/request'

// 查询供应商商品列表
export function listErpSupplierCommodity(query) {
  return request({
    url: '/erp/ErpSupplierCommodity/list',
    method: 'get',
    params: query
  })
}

// 查询供应商商品详细
export function getErpSupplierCommodity(supplierCommodityId) {
  return request({
    url: '/erp/ErpSupplierCommodity/' + supplierCommodityId,
    method: 'get'
  })
}

// 新增供应商商品
export function addErpSupplierCommodity(data) {
  return request({
    url: '/erp/ErpSupplierCommodity',
    method: 'post',
    data: data
  })
}

// 修改供应商商品
export function updateErpSupplierCommodity(data) {
  return request({
    url: '/erp/ErpSupplierCommodity',
    method: 'put',
    data: data
  })
}

// 删除供应商商品
export function delErpSupplierCommodity(supplierCommodityId) {
  return request({
    url: '/erp/ErpSupplierCommodity/' + supplierCommodityId,
    method: 'delete'
  })
}
